package com.shop.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("试题选项")
public class QuestionOption implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="内容")
    @NotNull(message = "选项内容不能为空")
    private String text;

    @ApiModelProperty(value = "是否正确选项")
    private Boolean correct;
}